﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SA1012OpeningCurlyBracketsMustBeSpacedCorrectly.cs" company="StyleCop for ReSharper Development Team">
//   Copyright (c) StyleCop for ReSharper Development Team. All rights reserved.
// </copyright>
// <summary>
//   Defines the SA1011ClosingSquareBracketsMustBeSpacedCorrectly type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace StyleCop.For.ReSharper.TestProject.Spacing
{
    /// <summary>
    /// </summary>
    internal class SA1012OpeningCurlyBracketsMustBeSpacedCorrectly
    {
        #region Methods

        /// <summary>
        /// This is the summary.
        /// </summary>
        private void Method1()
        {
            var i = new[] { 1, 2, 34, 45 };
        }

        private void Method2()
        {
            this.SubParts =
            (from o in xComponent.Elements()
            where o.Name == ModelXmlConstants.SubPartElement
            select new SubPart(o)
            {
            Name = (string)o.Attribute(ModelXmlConstants.NameAttribute)
            }).ToArray();
        }

        #endregion
    }
}